package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.EXAM01.TASK1;

import java.util.Scanner;

public class TriAngle_Views {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("+Imput side 1: ");
		double side1 = in.nextDouble();
		System.out.println("+Imput side 2: ");
		double side2 = in.nextDouble();
		System.out.println("+Imput side 3: ");
		double side3 = in.nextDouble();

		Object obj = new TriAngle_Entity();
		TriAngle_Entity Obj = (TriAngle_Entity)obj;
		Obj.setSide1(side1);
		Obj.setSide2(side2);
		Obj.setSide3(side3);

		TriAngle_Controllers cObj = new TriAngle_Controllers(Obj);
		System.out.printf("+Area: %8.2f \n", cObj.getArea(Obj));
		System.out.printf("+Perimeter: %8.2f \n",cObj.getPerimeter(Obj));
	}

}
